package etc.spec.ytt.week8.home.class2;

public class ThrougthWinter {
    private String winterCome(IHibernate hibernate){
        return  hibernate.hibernate();
    }
    public static void main(String[] args){
        ThrougthWinter througthWinter=new ThrougthWinter();
        Bear bear=new Bear("北极熊","海豹","北极");
        Frog frog=new Frog("蟾蜍","昆虫","池塘边");
        System.out.println(througthWinter.winterCome(bear));
        System.out.println(througthWinter.winterCome(frog));
    }
}
